package com.ruoyi.checksystem.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 支付订单对象 payment_order
 * 
 * @author lin
 * @date 2025-05-21
 */
public class PaymentOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String phone;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal amount;

    /** 支付类型：1-微信支付，2-支付宝支付 */
    @Excel(name = "支付类型：1-微信支付，2-支付宝支付")
    private Long paymentType;

    /** 订单状态：0-未支付，1-已支付，2-支付失败，3-已取消 */
    @Excel(name = "订单状态：0-未支付，1-已支付，2-支付失败，3-已取消")
    private Long status;

    /** 套餐类型 */
    @Excel(name = "套餐类型")
    private String packageType;

    /** 套餐积分 */
    @Excel(name = "套餐积分")
    private Long packagePoints;

    /** 套餐时长 */
    @Excel(name = "套餐时长")
    private String packageDuration;

    /** 支付平台交易号 */
    @Excel(name = "支付平台交易号")
    private String transactionId;

    /** 支付二维码链接 */
    @Excel(name = "支付二维码链接")
    private String qrCodeUrl;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /** 是否删除：0-未删除，1-已删除 */
    @Excel(name = "是否删除：0-未删除，1-已删除")
    private Long isDeleted;
    
    /** 排序字段 */
    private String orderByColumn;
    
    /** 排序方向 */
    private String isAsc;
    
    /** 时间排序 */
    private String orderByTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setPaymentType(Long paymentType) 
    {
        this.paymentType = paymentType;
    }

    public Long getPaymentType() 
    {
        return paymentType;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPackageType(String packageType) 
    {
        this.packageType = packageType;
    }

    public String getPackageType() 
    {
        return packageType;
    }

    public void setPackagePoints(Long packagePoints) 
    {
        this.packagePoints = packagePoints;
    }

    public Long getPackagePoints() 
    {
        return packagePoints;
    }

    public void setPackageDuration(String packageDuration) 
    {
        this.packageDuration = packageDuration;
    }

    public String getPackageDuration() 
    {
        return packageDuration;
    }

    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }

    public void setQrCodeUrl(String qrCodeUrl) 
    {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getQrCodeUrl() 
    {
        return qrCodeUrl;
    }

    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }

    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    public String getOrderByTime() {
        return orderByTime;
    }

    public void setOrderByTime(String orderByTime) {
        this.orderByTime = orderByTime;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("phone", getPhone())
            .append("orderNo", getOrderNo())
            .append("amount", getAmount())
            .append("paymentType", getPaymentType())
            .append("status", getStatus())
            .append("packageType", getPackageType())
            .append("packagePoints", getPackagePoints())
            .append("packageDuration", getPackageDuration())
            .append("transactionId", getTransactionId())
            .append("qrCodeUrl", getQrCodeUrl())
            .append("payTime", getPayTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
